package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {
    //分页查询所有和条件查询
    Page<Setmeal> findByName(Integer pageNum, Integer pageSize, String name);
    //新增套餐
    void save(Setmeal setmeal);
    //删除套餐
    void deleteBatchIds(List<Long> ids);


    //修改回显
    Setmeal findById(Long id);
    //修改套餐
    void update(Setmeal setmeal);
    //批量启停售卖
    void sellStatus(Integer type, List<Long> ids);
    //客户端展示套餐内容
    List<Setmeal> findList(Long category, Integer status);
    //展示套餐详情
    List<Dish> show(Long id);
}
